
//
// 101206 - AH - Created.
//

package org.soekrat.gui.swing.forest;

import org.soekrat.engine.forest.Tree;

/**
 * <p>
 *   Interface for objects that creates
 *   {@link Tree}s.
 * </p>
 * @author Arne Halvorsen (AH)
 * @author Laetitia Le Chatton (LLC) 
 */
public interface TreeCreator 
{
  /**
   * <p>
   *   Creates 
   *   {@link Tree}.
   * </p>
   * @param name   Name of tree to create.
   * @param parent Parent, if {@code null} creates new root.
   * @return Created.
   */
  Tree create(String name, Tree parent);
  
}
